const Koa=require('koa')
const cors=require('koa-cors')
const bodyparser=require('koa-bodyparser')
const router=require('./router')
const app=new Koa()




app.use(cors())
app.use(bodyparser())
router(app)
app.listen(8888,()=>{
    console.log("listen to 8888")
})